package com.zz.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 社团负责人信息表
 * @author HUAWEI
 */
@ApiModel("社团负责人信息表")
@Data
public class ClubLeader implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
    * 主键
    * */
    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空")
    @TableId(type= IdType.AUTO)//主键自增
    private Integer id;

    /**
     * 用户学号
     * */
    @ApiModelProperty("学号")
    @Range(min = 1000000000, message = "用户学号为10位")
    private Integer userId;

    /**
     * 社团编码
     * */
    @ApiModelProperty("社团编码")
    @NotNull(message = "社团编码不能为空")
    private Integer clubId;

    @ApiModelProperty("审核状态码")
    @NotNull(message = "审核状态码不能为空")
    private Integer status;

    @ApiModelProperty("操作状态码")
    @NotNull(message = "操作状态码不能为空")
    private Integer operate;
}
